import request from '@/logrequest/request'

// 注册接口
export const registerApi = (data) => request.post('/api/register', data)

// 登录接口
export const loginApi = (data) => request.post('/api/login', data)

// 获取用户信息接口
export const getUserInfoApi = (params) => request.get(`/my/userinfo?id=${params}`)

// 获取用户信息接口
export const updateUserInfoApi = (data) => request.post(`/my/userinfo?`, data)

// 修改密码
export const updatePwdApi = (data) => request.post(`/my/updatepwd`, data)

// 注销用户
export const deleteUserApi = (params) => request.get(`/my/deleteuser?id=${params}`)